class Queue2(list):
  def enqueue(self, item):
    return self.append(item)

  def dequeue(self):
    return self.pop(0)

  def isEmpty(self):
    return len(self) == 0
